/**
 * IRegionService.java
 * Created at 2017-2-8
 * Created by Administrator
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.system.service;

import java.util.List;

import com.broadtext.common.exp.DaoException;
import com.broadtext.common.service.IEntityService;
import com.broadtext.rms.system.model.Region;

/**
 * <p>
 * ClassName: IRegionService
 * </p>
 * <p>
 * Description: 区域服务层接口
 * </p>
 * <p>
 * Author: zhangzhiqinag002
 * </p>
 * <p>
 * Date: 2017-3-19
 * </p>
 */
public interface IRegionService extends IEntityService<Region>{

    /**
     * 
     * <p>Description: 获取区域树</p>
     * @return 区域树列表
     * @throws DaoException dao异常
     */
    public List<Region> getRegionTree() throws DaoException;
    
    /**
     * <p>Description: 删除区域</p>
     * @param regIdArray 区域id
     * @param userName 操作人
     * @throws DaoException 异常
     */
    public void delRegion(String[] regIdArray, String userName) throws DaoException;

    /**
     * <p>Description: 更新区域</p>
     * @param record 区域model
     * @param userName 登录用户名
     * @return 更新结果
     * @throws DaoException 异常
     */
    public String saveOrUpdateRegion(String record, String userName) throws DaoException;

}
